package com.sqsf.mapper;

import com.sqsf.entity.User;
import org.apache.ibatis.annotations.*;
import java.util.List;

public interface UserMapper {
    @Select("SELECT * FROM t_user")
    List<User> selectAllUsers();
    @Insert("INSERT INTO t_user(username, age, email) VALUES(#{username}, #{age}, #{email})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insertUser(User user);
}
